﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/Admin/_AdminLayout.cshtml";
}
@Styles.Render("~/Content/File/Admin/File.css")
@Styles.Render("~/Content/themes/base/jquery-ui.css")
<input type="text" id="result"/>&nbsp;<input type="button" onclick="ChooseFile(); return false;" value="Duyệt ảnh"/>
<br />

<div>
  <textarea id="example" name="example" rows="30" cols="120">
    A demonstration for TinyMCE and FCKEditor File Manager intergration using 'asp' connector [you are hearing 'ASP' - Not 'ASP.NET']
  </textarea>  
</div>

<div id="file-browser-pop-up" >    
    <div id="file-browser-loader">
        
    </div>
</div>

<div>
    @WebCore.App_Start.MyAppConfig.Lang_Current
</div>
@section scripts {
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.fileupload.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/File/File.js")"></script>
    <script src="@Url.Content("~/Scripts/tiny_mce/tiny_mce.js")" type="text/javascript"></script>
    

    <script type="text/javascript" language="javascript">
        // set active for top menu
        function ChooseFile() {
            var onOk = function (result) {
                $('#result').val(result);
            };
            OpenFileBrowser(onOk, '@WebCore.Resources.File.FileBrowsingTitle');
        }

        $(document).ready(function () {
            DefaultTinyMCEditor('example');
        });
        
    </script>
}
